/*
 * @Description: 
 * @Author: @yangwenshan
 * @since: 2021-05-17 12:38:48
 * @LastAuthor: @yangwenshan
 * @lastTime: 2021-05-17 12:42:03
 */
import request from '@/utils/request'

const api = {
    image: '/manager/images/image',
    imageOss: '/manager/images/imgOss'
}

export function uploadImg(params) {
    return request({url: api.img, method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: params})
}

export function uploadImgOss(params) {
    return request({url: api.imgOss, method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: params})
}

export function uploadImg(params) {
    return request({url: api.img, method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: params})
}